//***********************************************************************
//	File:		DisRupTor.cpp
//	Author:		
//	Course:		SGP 1405
//	Purpose:	
//***********************************************************************
//***********************************************************************
//	Purposfully left blank for all comments regarding this file 
//	
//	
//	
//***********************************************************************

#include "DisRupTor.h"
#include "../SGD Wrappers/SGD_Event.h"

DisRupTor::DisRupTor(float posX, float posY)
{
	SetAcceleration ( { 0 , 0 } );
	SetAttackCDL(1); 
	SetAttackRange(500); 
	SetConfuseCDL(4); 
	SetConfuseTimer(0); 
	SetDynamicFrictionCoefficient(.4f); 
	SetHealth(100); 
	//SetImage();
	SetJamRadius(300); 
	SetKnockbackCDL(3); 
	SetKnockBackTimer(0);
	SetMass(60); 
	SetMaxHealth(100);
	SetMaxSpeed(75); 
	SetPassable(false);
	SetPosition(SGD::Point{ posX, posY }); 
	SetProjectileType(ENT_BULLET); 
	SetRootCDL(4); 
	SetRootTimer(0);
	SetRotation(0);
	SetSize(SGD::Size{ 64, 64 }); 
	SetSpeed(0); 
	SetStaticFrictionCoefficient(.7f); 
	//SetTakeDamage(); particle emitter
	SetTarget(nullptr); 
	SetValue(ENT_DISRUPTOR);
	SetVelocity(SGD::Vector{ 0, -1 }); 
}

DisRupTor::~DisRupTor()
{
	int * points = new int(15);
	SGD::Event * pEvent = new SGD::Event ( "INCREASE_SCORE", points, nullptr);
	pEvent->QueueEvent(nullptr);
	pEvent = nullptr;
}

void DisRupTor::Update(float dt)
{
	//Last line of function
	Entity::Update(dt);
}

void DisRupTor::Render()
{

}

void DisRupTor::HandleCollision(const IEntity* pOther)
{

}

void DisRupTor::HandleEvent()
{

}

SGD::Rectangle DisRupTor::GetRect() const
{
	return SGD::Rectangle{}; 
}

void DisRupTor::ModifyHealth(float hpAmount)
{

}

void DisRupTor::ApplyFriction(float dt)
{

}

void DisRupTor::Attack(float dt)
{

}

void DisRupTor::Move(void)
{

}

void DisRupTor::Disrupt()
{

}
